package com.ky.my.controller;


import com.ky.common.vo.R;
import com.ky.my.service.VideoCacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hmt
 * @since 2024-06-19
 */
@CrossOrigin
@RestController
@RequestMapping("/video")
public class VideoCacheController {
    @Autowired
    private VideoCacheService videoCacheService;
    @RequestMapping("/findAllVideoCache")
    public R findAllVideoCache()
    {
        return videoCacheService.findAllVideoCache();
    }
    @RequestMapping("/deleteVideoCache")
    public R deleteVideoCacheById(Integer vudeoId ) {
        return videoCacheService.deleteVideoCacheById(vudeoId);
    }

}

